]> dgit.raspbian.org Git - gnome-shell.git/commit
status/a11y: Block 'toggled' signal when manually toggling
authorMatthijs Velsink <mvelsink@gnome.org>
Sun, 15 Dec 2024 20:53:06 +0000 (21:53 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 10 Jan 2025 11:47:16 +0000 (12:47 +0100)
commite163be9885c152665fc4aa81125d32b6e033bbd2
tree442d21cc6e4f246ac27d3b3f0a9271eb9be8c31e
parent431d7bc75ce70cf9de20954aa9eb35fb470b6048
status/a11y: Block 'toggled' signal when manually toggling

When the 'text-scaling-factor' key changes and it's set bigger than 1.0,
the corresponding switch is activated in the a11y menu. However, since
commit 946ee936926a0e14fa5f86f62da757bcb581a147, setting the state using
`setToggleState()` also fires the 'toggled' signal, which is I think
correct and intended.

However, that means the GSettings handler for 'text-scaling-factor'
should block that 'toggled' handler when it sets the switch active, as
otherwise the 'text-scaling-factor' is always set to 1.25 when it is
first made bigger than 1.0.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3574>
(cherry picked from commit 1e6c92a083864da9914078990210c1eb38c38cb1)
js/ui/status/accessibility.js